package demo

import (
	protoDemo "app/internal/proto/demo"
	"app/wd"

	"github.com/gin-gonic/gin"
)

// Demo demo
func (c Ctrl) Demo(ctx *gin.Context) {
	req := protoDemo.Req{}
	if err := wd.CheckReq(ctx, &req); err != nil {
		wd.ShowRes(ctx, nil, err)
		return
	}
	res, err := c.biz.Demo(ctx, &req)
	wd.ShowRes(ctx, res, err)
}
